package org.yly.game.rpggame.domain.model.player;

import org.yly.game.rpggame.domain.model.Identity;

/**
 * 关系,表示与对象之间的关系程度
 * @author makefu
 *
 */
public class Relation {
	
	private Identity objectId;
	/**
	 * 关系值[0,100)
	 */
	private int value;
	
	public Relation(Identity objectId, int value) {
		this.objectId = objectId;
		this.value = value;
	}
	
	public Identity getobjectId() {
		return objectId;
	}

	public int getValue() {
		return value;
	}
	
	public boolean isFriend() {
		return getRelationType().isFriend();
	}
	
	public boolean isEnemy(){
		return getRelationType().isEnemy();
	}
	
	private RelationType getRelationType() {
		return null;
	}
}
